package com.gujia.designpattern.observe.template.impl;

import com.gujia.designpattern.observe.template.ConcreateSubject;
import com.gujia.designpattern.observe.template.Observe;
import com.gujia.designpattern.observe.template.Subject;

public class ConcreateObserve implements Observe {
    //观察者的状态
    private String observerState;

    @Override
    public void update(Subject subject) {
            observerState = ((ConcreateSubject)subject).getSubjectState();
    }
}
